import request from "@/router/axios";
import { baseUrl } from "@/config/env";

//添加寝室等级
export function addBedroomLevel(data) {
  return request({
    url: baseUrl + "/pc/bedroom-level",
    method: "post",
    data
  });
}

//查询寝室等级
export function getBedroomLevel(data) {
  return request({
    url: baseUrl + "/pc/bedroom-level",
    method: "get",
    params: data
  });
}

//删除寝室等级
export function deleteBedroomLevel(data) {
  return request({
    url: baseUrl + "/pc/bedroom-level",
    method: "delete",
    data
  });
}

//更新寝室等级
export function updateBedroomLevel(data) {
  return request({
    url: baseUrl + "/pc/bedroom-level",
    method: "put",
    data
  });
}

//导入寝室等级
export function importBedroomLevel(data) {
  return request({
    url: baseUrl + "/pc/bedroom-level",
    method: "post",
    data
  });
}
